package com.tjzx.entity;

/**
 * PerspatientDengerKeyId entity. @author MyEclipse Persistence Tools
 */

public class PerspatientDengerKeyId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String dangerkeyword;

	// Constructors

	/** default constructor */
	public PerspatientDengerKeyId() {
	}

	/** minimal constructor */
	public PerspatientDengerKeyId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public PerspatientDengerKeyId(Integer id, String dangerkeyword) {
		this.id = id;
		this.dangerkeyword = dangerkeyword;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDangerkeyword() {
		return this.dangerkeyword;
	}

	public void setDangerkeyword(String dangerkeyword) {
		this.dangerkeyword = dangerkeyword;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PerspatientDengerKeyId))
			return false;
		PerspatientDengerKeyId castOther = (PerspatientDengerKeyId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getDangerkeyword() == castOther.getDangerkeyword()) || (this
						.getDangerkeyword() != null
						&& castOther.getDangerkeyword() != null && this
						.getDangerkeyword()
						.equals(castOther.getDangerkeyword())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getDangerkeyword() == null ? 0 : this.getDangerkeyword()
						.hashCode());
		return result;
	}

}